import { Controller, Get, UseInterceptors } from '@nestjs/common';
import { AppService } from './app.service';
import { PrismaService } from './prisma/prisma.service';
import { commonInterceptor } from './interceptor/common.interceptor';
@UseInterceptors(commonInterceptor)
@Controller()
export class AppController {
  constructor(
    private readonly appService: AppService,
    private readonly prisma: PrismaService,
  ) {}

  @Get()
  async getHello() {
    return 'hello';
  }
}
